using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace phorm.database.core
{
    /// <summary>
    /// Dictionary of DatabaseColumns for storing column name and information
    /// </summary>
    public class ColumnsDictionary : Dictionary<string, DatabaseColumn>
    {
        /// <summary>
        /// Add the column to the Dictionary
        /// </summary>
        /// <param name="key">Name of the column</param>
        /// <param name="value">The column object</param>
        public void addColumn(string key, DatabaseColumn value)
        {
            value.column = key;
            this.Add(key, value);
        }
    }
}
